// VirtualKey.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"

#define DLL extern "C" __declspec(	dllexport)

DLL void PlayKey()
{
	keybd_event(179, 0, KEYEVENTF_EXTENDEDKEY, 0);
	keybd_event(179, 0, KEYEVENTF_KEYUP, 0);
}

DLL void PlayKeyDown()
{
	keybd_event(179, 0, KEYEVENTF_EXTENDEDKEY, 0);
}

DLL void PlayKeyUp()
{
	keybd_event(179, 0, KEYEVENTF_KEYUP, 0);
}

DLL void MuteKey()
{
	keybd_event(173, 0, KEYEVENTF_EXTENDEDKEY, 0);
	keybd_event(173, 0, KEYEVENTF_KEYUP, 0) ;
}

DLL void MaisVolumeKey()
{
	keybd_event(175, 0, KEYEVENTF_EXTENDEDKEY, 0);
	keybd_event(175, 0, KEYEVENTF_KEYUP, 0) ;
}

DLL void MaisVolumeKeyDown()
{
	keybd_event(175, 0, KEYEVENTF_EXTENDEDKEY, 0);
}

DLL void MaisVolumeKeyUp()
{
	keybd_event(175, 0, KEYEVENTF_KEYUP, 0) ;
}

DLL void MenosVolumeKey()
{
	keybd_event(174, 0, KEYEVENTF_EXTENDEDKEY, 0);
	keybd_event(174, 0, KEYEVENTF_KEYUP, 0);
}

DLL void MenosVolumeKeyDown()
{
	keybd_event(174, 0, KEYEVENTF_EXTENDEDKEY, 0);
}

DLL void MenosVolumeKeyUp()
{
	keybd_event(174, 0, KEYEVENTF_KEYUP, 0);
}

DLL void VirtuelKey(int VK)
{
	keybd_event(VK, 0, KEYEVENTF_EXTENDEDKEY, 0);
	keybd_event(VK, 0, KEYEVENTF_KEYUP, 0);
}

DLL void VirtualKeyDown(int VK)
{
	keybd_event(VK, 0, KEYEVENTF_EXTENDEDKEY, 0);
}

DLL void VirtualKeyUp(int VK)
{
	keybd_event(VK, 0, KEYEVENTF_KEYUP, 0);
}